// pages/publish/publish.js
import { wxRequest } from "../../utils/ajax";
Page({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
  ,bindPressChange(e) {
    this.setData({
      pressTime: e.detail.value
    })
  }
  ,bindStartChange(e) {
    this.setData({
      startTime: e.detail.value
    })
  }
  , bindEndChange(e) {
    this.setData({
      endTime: e.detail.value
    })
  }, addArticle(e){
       let val = JSON.stringify(e.detail.value)
       wxRequest('/aArticle/add', {
         artJson: val
       }, function (ww) {
         wx.reLaunch({
           url: '/pages/list/list'
         })
       });
  }
})
